﻿namespace Game.UiState
{
    /// <summary>
    /// 标题 Ui 状态
    /// </summary>
    public class TitleState : Manager.IUiState
    {
        public void OnEnter()
        {
            var manager = Manager.Instance;
            manager.TitleView.SetActive(true);
            manager.GameView.SetActive(false);
        }
        
        public void OnUpdate()
        {
        }

        public void OnExit()
        {
            var manager = Manager.Instance;
            manager.TitleView.SetActive(false);
        }
    }
}